import request from '@/utils/request'

// 新增科室
export function addDepartment(params) {
  return request({
    url: '/dic/addDepartment',
    method: 'post',
    params
  })
}

// 编辑科室
export function updateDepartment(params) {
  return request({
    url: '/dic/upDepartment',
    method: 'post',
    params
  })
}

// 删除科室
export function removeDepartment(params) {
  return request({
    url: '/dic/delDepartment',
    method: 'post',
    params
  })
}

// 科室置顶
export function departmentSetTop(params) {
  return request({
    url: '/dic/topDepartment',
    method: 'post',
    params
  })
}

// 科室置底
export function departmentSetBottom(params) {
  return request({
    url: '/dic/bottomDepartment',
    method: 'post',
    params
  })
}

// 科室上移
export function departmentMoveUp(params) {
  return request({
    url: '/dic/moveUpDepartment',
    method: 'post',
    params
  })
}

// 科室下移
export function departmentMoveDown(params) {
  return request({
    url: '/dic/moveDownDepartment',
    method: 'post',
    params
  })
}
